import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/Home.vue'),
  },
  {
    path:'/search',
    name:'search',
    component: () => import('../views/Serach.vue'),
  },
  {
    path:'/searchContainer',
    name:'SearchContainer',
    component: () => import('../views/SearchContainer.vue'),
  },
  {
    path:'/cartoonContainer',
    name:'CartoonContainer',
    component: () => import('../views/CartoonContainer.vue'),
  },
  {
    path:'/cartoonuser',
    name:'CartoonUser',
    component: () => import('../views/CartoonUser.vue'),
  },
  {
    path:'/cartooncomment',
    name:'CartoonComment',
    component: () => import('../views/CartoonComment.vue'),
  },
  {
    path:'/comment',
    name:'comment',
    component: () => import('../views/Comment.vue'),
  },
  {
    path:'/chapter',
    name:'chapter',
    component: () => import('../views/Chapter.vue'),
  },
  {
    path:'/ranking',
    name:'ranking',
    component: () => import('../views/Ranking.vue'),
  },
  {
    path:'/monthticket',
    name:'MonthTicket',
    component: () => import('../views/MonthTicket.vue'),
  },
  {
    path:'/filte',
    name:'Filte',
    component: () => import('../views/Filte.vue'),
  },
  {
    path:'/register',
    name:'Register',
    component: () => import('../views/Register.vue'),
  },
  {
    path:'/login',
    name:'login',
    component: () => import('../views/Login.vue'),
  },
  {
    path:'/history',
    name:'History',
    component: () => import('../views/History.vue'),
  },
  {
    path:'/zhui',
    name:'Zhui',
    component: () => import('../views/Zhui.vue'),
  },
  {
    path:'/ranklist',
    name:'Ranklist',
    component: () => import('../views/Ranklist.vue'),
  },
  {
    path:'/allcartoon',
    name:'AllCartoon',
    component: () => import('../views/AllCartoon.vue'),
  },
  {
    path:'/activityCont',
    name:'activityCont',
    component: () => import('../views/ActivityCont.vue'),
  },

]

const router = new VueRouter({
  mode:'hash',
  routes
})

export default router
